//
//  OMRequestParam.m
//  RequestTest
//
//  Created by xntech on 13-8-20.
//  Copyright (c) 2013年 xntech. All rights reserved.
//

#import "OMRequestParam.h"

@implementation OMRequestParam
@synthesize fileName = _fileName;
@synthesize filePath = _filePath;
@synthesize data = _data;
@synthesize key = _key;
@synthesize contentType = _contentType;
- (BOOL)isFileNotData
{
    if (_data == nil)
    {
        return NO;
    }
    return YES;
}
- (BOOL)isValid
{
    if ([self isFileNotData] && self.filePath != nil)
    {
        return YES;
    }else if (_data != nil){
        return YES;
    }
    return NO;

}
@end
